﻿using System;
using System.Collections.Generic;
using System.Text;

namespace MediaData
{
    public class MediaRoot : IComparable
    {
        public string Volume { get; set; }
        public string Path { get; set; }

        public MediaRoot() { }

        public MediaRoot(string volume, string path)
        {
            this.Volume = volume;
            this.Path = path;
        }

        public int CompareTo(object obj)
        {
            MediaRoot other = obj as MediaRoot;
            if (other == null)
                throw new ArgumentException("Object was not a Root");

            return Volume.CompareTo(other.Volume);
        }
    }
}
